<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tab')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-tab" class="form-control selectpicker" name="row[tab]">
                {foreach name="tabList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div> -->
    {if $row['type']=='string'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-value" class="form-control" name="row[value]" type="text" value="{$row.value|htmlentities}">
        </div>
    </div>
    {/if}
    {if $row['type']=='image'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-value" class="form-control" size="50" name="row[value]" type="text"
                    value="{$row.value|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-value" class="btn btn-danger faupload"
                            data-input-id="c-value"
                            data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                            data-multiple="false" data-preview-id="p-value"><i class="fa fa-upload"></i>
                            {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-value" class="btn btn-primary fachoose"
                            data-input-id="c-value" data-mimetype="image/*" data-multiple="false"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-value"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-value"></ul>
        </div>
    </div>
    {/if}
    {if $row['type']=='int'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-value" class="form-control" name="row[value]" type="number" value="{$row.value|htmlentities}">
        </div>
    </div>
    {/if}
    {if $row['type']=='text'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-value" class="form-control editor" rows="5" name="row[value]" cols="50">{$row.value|htmlentities}</textarea>
        </div>
    </div>
    {/if}
    {if $row['type']=='test'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-value" class="form-control " rows="5" name="row[value]" cols="50">{$row.value|htmlentities}</textarea>
        </div>
    </div>
    {/if}
    {if $row['type']=='bool'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            <label for="row[value]-1"><input id="row[value]-1" name="row[value]" type="radio" value="1" {in name="1"
                    value="$row.value" }checked{/in} /> {:__('显示')}</label>
            <label for="row[value]-0"><input id="row[value]-0" name="row[value]" type="radio" value="0" {in name="0"
                    value="$row.value" }checked{/in} /> {:__('隐藏')}</label>
        </div>
    </div>
    </div>
    {/if}
    {if $row['type']=='select'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-8">
                <input id="c-value" data-rule="required" data-field="title" data-source="announcement/index" class="form-control selectpage" name="row[value]"
                    type="text" value="{$row.value|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>